package dao

import (
	"time"
)

// 这是 LiOrderComplaintCommunication 的全局公开dao对象
var LiOrderComplaintCommunicationDao = liOrderComplaintCommunicationDao{}

// 这是 li_order_complaint_communication表 的实体类
type LiOrderComplaintCommunication struct {
	Id         int       `json:"id" form:"id" v:"id"`                                             // ID
	CreateBy   string    `json:"create_by" form:"create_by" v:"create_by"`                        // 创建者
	CreateTime time.Time `json:"create_time" form:"create_time" v:"create_time"`                  // 创建时间
	DeleteFlag bool      `json:"delete_flag" form:"delete_flag" v:"delete_flag" gm:"delete_flag"` // 删除标志 true/false 删除/未删除
	UpdateBy   string    `json:"update_by" form:"update_by" v:"update_by"`                        // 更新者
	UpdateTime time.Time `json:"update_time" form:"update_time" v:"update_time"`                  // 更新时间
	ComplainId string    `json:"complain_id" form:"complain_id" v:"complain_id"`                  // 投诉ID
	Content    string    `json:"content" form:"content" v:"content"`                              // 对话内容
	Owner      string    `json:"owner" form:"owner" v:"owner"`                                    // 所属，买家/卖家
	OwnerId    string    `json:"owner_id" form:"owner_id" v:"owner_id"`                           // 对话所属ID,卖家ID/买家ID
	OwnerName  string    `json:"owner_name" form:"owner_name" v:"owner_name"`                     // 对话所属名称

}

// 注意:这是 LiOrderComplaintCommunication 的私有dao对象
type liOrderComplaintCommunicationDao struct {
	Insert func(arg LiOrderComplaintCommunication) int                           //插入一条记录
	Update func(arg LiOrderComplaintCommunication) int                           //更新一条记录
	Delete func(arg LiOrderComplaintCommunication) int                           //删除一条记录
	Select func(arg LiOrderComplaintCommunication) LiOrderComplaintCommunication //获取一条记录
}
